package com.vae.auth.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: 35238
 * 功能: 调用checkcode模块的校验图形验证码的接口
 * 时间: 2024-07-05 23:30
 */
@FeignClient(value = "checkcode-api",fallbackFactory = CheckCodeClientFactory.class)
@RequestMapping("/checkcode")
public interface CheckCodeClient {

    @PostMapping(value = "/verify")
    Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);

}
